#pragma once

struct indexbuffer_t
{
	indexbuffer_t();
	indexbuffer_t(uint32 indexnum);
	void init(uint32 indexnum);
	uint16* lock();
	uint16* lock_read();
	void unlock();
	~indexbuffer_t();
	void release();
	void set();

	uint32 hwid;
	uint32 numindices;
};